﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RepeatMsgList.aspx.cs"
    Inherits="OTA.Notification.Web.Message.RepeatMsgList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>重复消息事件管理</title>
    <link href="../../Style/main.css" type="text/css" rel="stylesheet" />

    <script src="../../common/jquery-1.2.6.min.js"></script>

    <script src="../../common/jquery-impromptu.1.5.js"></script>

    <script src="../../common/flexigrid/flexigrid.js"></script>

    <script src="../../common/winbox.js"></script>

    <link rel="stylesheet" href="../../common/flexigrid/flexigrid.css" type="text/css"
        media="screen" />
    <link rel="stylesheet" href="../../style/dfbDialog.css" type="text/css" media="screen" />

    <script type="text/javascript" charset="utf-8">
	
		$(document).ready(function(){
		
		    $('#grid').flexigrid({
		        width: $(document).width() - 10,
		        height: 400,
		        //striped:false,
		        
		        url:'?action=get',
		        
		        dataType: 'json',
		        
		        colModel: [ 
                    {display: '客户端标识', name : 'flag', width : 180, sortable : false, align: 'left'},   
                    {display: '应用系统', name : 'level', width : 300, sortable : false, align: 'left'},
                    {display: '消息类型', name : 'type', width : 60, sortable : false, align: 'left'},
                    {display: '发送者', name : 'sendaccount', width : 60, sortable : false, align: 'left'},
                    {display: '下次时间', name : 'appflag', width : 60, sortable : false, align: 'left'},
                    {display: '重复次数', name : 'terminal', width : 60, sortable : false, align: 'left'}
                ],
                
                singleSelect: true,
                
                showTableToggleBtn: true,
                rp: 15,
                usepager: true,
                useRp: true,
                onSuccess: onDoubleClick
		    });
		    
		    
            function onDoubleClick() 
            {
                $('#grid tbody tr td').each(function() {
                
                    $(this).dblclick(function(e) {
                    
                        var row = $(this).parents('tr');
                        
                        var id = row.children('td').eq(0).children('div').get(0).innerHTML;
                        
                        ShowBox('repeatmsg.aspx?id=' + id, 450);
                    });
                });
            }
            
		    
		    $('#btnsearch').click(function (){

                var params = "";
                
    		    var objselect = $('#txtClientSeq').val();
    		    
                params = objselect;
                
		        $('#grid').flexOptions({ query: params }).flexReload();

		    });
		    
		});
		
        
        function doRefresh(){
            $('#grid').flexOptions().flexReload();
        }
        
    </script>

</head>
<body>
    <div class="menu_title">
        重复消息事件列表
    </div>
    <div>
        <table>
            <tr>
                <td>
                    客户端标识：
                </td>
                <td>
                    <input id="txtClientSeq" type="text" class="text-area" /><input id="btnsearch" type="button"
                        value="Search" class="button" />
                </td>
            </tr>
        </table>
        <table id="grid">
        </table>
    </div>
</body>
</html>
